package com.example.ssmvc_homework03.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;



@Controller
@RequestMapping("/thymeleaf")
public class ThymeleafController {
    @RequestMapping("/hello")
    public String sayHello(Model model){
        model.addAttribute("helloMessage","Hello, welcome to use Thymeleaf 哈哈哈!!!");
        return "hello";
    }
}
